
adminApp.service('wineryService' ,['$http', function($http){

    this.getList = function(){
        return $http.get("/uj-admin/winery/list");
    };

    this.getById = function(id){
        return $http.get("/uj-admin/winery/" + id);
    }
}]);

adminApp.service('goodsService' ,['$http', function($http){
    this.getById = function(id){
        return $http.get("/uj-admin/goods/" + id);
    }
}]);

adminApp.service('inventoryService' ,['$http', function($http){

    this.getInventoryById = function(id){
        return $http.get("/uj-admin/inventory/" + id);
    }
}]);

adminApp.service('categoryService', ['$http' , function($http){
    this.getCategoryList = function(){
        return $http.get("/uj-admin/category/list");
    }
}]);

adminApp.service('parametersService',['$http' , function($http){
    this.getParametersList = function(){
        return $http.get("/uj-admin/parameters/list");
    }

    this.getById = function(id){
        return $http.get("/uj-admin/parameters/" + id);
    }
}]);

adminApp.service('countryService',['$http' , function($http){
    this.getCountryList = function(){
        return $http.get("uj-admin/country/list");
    }
}]);

adminApp.service('memberService',['$http' , function($http){
    this.getById = function(id){
        return $http.get("/uj-admin/member/" + id);
    }
}]);

adminApp.service('orderService',['$http' , function($http){
    this.getById = function(id){
        return $http.get("/uj-admin/order/" + id);
    }
}]);

adminApp.service('oaMemberService',['$http' , function($http){
    this.getById = function(id){
        return $http.get("/uj-oa/member/" + id);
    }

}]);